﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            String[] str = 
            {
             "套你猴子",
             "路走窄了",
             "给爸爸成",
             "再不出我就毁掉我自己",
             "他们叫我换频道，我一直没换，结果真出啦",
             "荒古遗精宝典",
             "太对了哥，哥太对"
            };
            ArrayHelper arrayhelper = new ArrayHelper();
            arrayhelper.PrintArray(str);

            //

            //替换
            string str1 = "你吊潮啊";
            if (str1.IndexOf(",") != 1)
            {
                str1 = str1.Replace("我", "tao");
            }
            Console.WriteLine("替换后的字符串为：" + str1);

            String str2 = "大吸，血剑";
            str2 = str2.Replace("套你", "猴子");
            Console.WriteLine(str2);


            int istr = str2.IndexOf("成！");
            Console.WriteLine(istr);



            //？？？
            string str3 = "不要白日做梦，建议你晚上睡觉也不要睡的太早，不然啊这梦做起来没完没了的";

            string[] strspilt = str3.Split('套','，');
            foreach (var ieme in strspilt)
            {
                Console.WriteLine(ieme);
            }







        }
    }
}
